from django.conf.urls import url
from . import views
from rest_framework_jwt.views import obtain_jwt_token

urlpatterns=[
    url(r'^usernames/(?P<username>\w{5,20})/$',views.UsernameCountView.as_view()),
    url(r'^mobiles/(?P<mobile>1[3-9]\d{9}})/$',views.MobileCountView.as_view()),
    # 注册用户路由
    url(r'^users/$',views.CreateUserView.as_view()),
    # 设置token路由
    url(r'^authorizations/$', obtain_jwt_token),
]